package com.golden.procedure.client;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.golden.procedure.domain.SiteDO;

@FeignClient("res-Service")
public interface SiteClientApi {

	@GetMapping("/api/site/{type}/{region}")
	public List<SiteDO> query(@PathVariable(value = "type") Integer type,
			@PathVariable(value = "region") String region);
	
	@GetMapping("/api/site/{id}")
	public SiteDO get(@PathVariable(value = "id") Integer id);

}